package com.example.workshop.lesson3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RecommenderImplementation {

    private Filter f;
    @Autowired
    public RecommenderImplementation(Filter f) {
        this.f = f;
    }

    public String [] recommendMovies(String movie){

        System.out.println("\nThe name of the filter in use："+f+"\n");
        String result[]= f.getRecommendations("流浪地球");
        return result;
    }
}
